package vn.tictok.facebook;

public class FacebookConstant {
	/**
	 * Facebook application id.
	 */
	public static final String APP_ID = "Your Application Id";
	
	/**
	 * Facebook application url.
	 */
	public static final String APP_URL = "Your Application Url";
	
	/**
	 * This field contains a list of Allow's button text. 
	 * Currently English and Vietnamese are supported. Feel free to add your own languages. 
	 * We use this text to simulate user's click on Allow button. (On permissions request page) 
	 */
	public static final String[] ALLOW_TEXTS = {"Allow", "Cho phép"};
	
	/**
	 * User read permissions
	 */
	public static final String USER_READ_PERMISSIONS = "user_about_me,user_activities,user_birthday,user_checkins,user_education_history,user_events,user_groups,user_hometown,user_interests,user_likes,user_location,user_notes,user_online_presence,user_photo_video_tags,user_photos,user_relationships,user_relationship_details,user_religion_politics,user_status,user_videos,user_website,user_work_history,email,read_friendlists,read_insights,read_mailbox,read_requests,read_stream,xmpp_login,ads_management";
	/**
	 * User write permissions
	 */
	public static final String USER_WRITE_PERMISSIONS = "publish_stream,create_event,rsvp_event,sms,offline_access,publish_checkins,manage_friendlists";
	
	/**
	 * Friend read permissions
	 */
	public static final String FRIEND_READ_PERMISSIONS = "friends_about_me,friends_activities,friends_birthday,friends_checkins,friends_education_history,friends_events,friends_groups,friends_hometown,friends_interests,friends_likes,friends_location,friends_notes,friends_online_presence,friends_photo_video_tags,friends_photos,friends_relationships,friends_relationship_details,friends_religion_politics,friends_status,friends_videos,friends_website,friends_work_history";
	
	/**
	 * All permissions
	 */
	public static final String ALL_PERMISSIONS = USER_READ_PERMISSIONS + "," + USER_WRITE_PERMISSIONS + "," + FRIEND_READ_PERMISSIONS;

	/**
	 * Url to get application access token
	 */
	public static final String REQUEST_ACCESS_TOKEN_URL = "https://www.facebook.com/dialog/oauth?client_id=" + APP_ID + "&redirect_uri=" + APP_URL + "&response_type=token&scope=" + ALL_PERMISSIONS;
	
	/**
	 * Facebook login url
	 */
	public static final String LOGIN_PAGE_URL = "http://www.facebook.com/login.php"; 
	
	/**
	 * Url to grant application permissions.
	 */
	public static final String GRANT_PERMISSION_URL = "http://www.facebook.com/connect/uiserver.php";
	
	/**
	 * Url to execute Graph API
	 */
	public static final String GRAPH_URL = "https://graph.facebook.com/";
	
	/**
	 * Graph API endpoint for current user
	 */
	public static final String ME_URL = "https://graph.facebook.com/me";
	
	/**
	 * Url to execute Facebook query language
	 */
	public static final String FQL_URL = "https://api.facebook.com/method/fql.query";
}
